-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add react-router SDK #4621
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0fd2a70 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Co-authored-by: LekoArts <[email protected]>
!snapshot |
This comment was marked as outdated.
This comment was marked as outdated.
!snapshot |
This comment was marked as outdated.
This comment was marked as outdated.
!snapshot |
This comment was marked as outdated.
This comment was marked as outdated.
!snapshot |
This comment was marked as outdated.
This comment was marked as outdated.
!snapshot |
This comment was marked as outdated.
This comment was marked as outdated.
!snapshot |
This comment was marked as outdated.
This comment was marked as outdated.
!snapshot |
Hey @LekoArts - the snapshot version command generated the following package versions:
Tip: Use the snippet copy button below to quickly install the required packages. npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact
npm i @clerk/[email protected] --save-exact |
Description
Add
@clerk/react-router
package to support React Router v7 (https://remix.run/blog/react-router-v7).Fixes #4641
Architecture
Fundamentally the package was copied from
@clerk/remix
and then the migration steps were done. I've also switched from the HoC patternClerkApp(App)
to having the user put our<ClerkProvider>
into their app. This gives us more flexibility (and access toloaderData
) + it seems to be better for dealing with lazy loading with Suspense in Next.js (so maybe helps here, too).How to use:
See Docs PR: clerk/clerk-docs#1760
Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change